/*
 * Alvin Baldemeca
 * TCSS 305 - Spring 2012
 * Assignment 4 Power Paint
 */

package view.menu;

import javax.swing.Action;
import javax.swing.JCheckBoxMenuItem;
import javax.swing.JMenu;


/**
 * The class is a JMenu that is used to add to a menu bar. 
 * @author Alvin Baldemeca
 * @version 5/10/2012
 *
 */
@SuppressWarnings("serial")
public class OptionsMenu extends JMenu
{

  
  /**
   * Constructs a JMenu with the name Options and Mnemonic 'O'.
   */
  public OptionsMenu()
  {
    super("Options");
    setMnemonic('O');    
  }
  

  /**
   * Creates a JCheckBoxMenuItem and adds it on to the OptionsMenu.
   * @param an_action the action needed to create a JCheckBoxMenuItem
   */
  public void createJCheckBoxMenuItem(final Action an_action)
  {
    add(new JCheckBoxMenuItem(an_action));
  }
}
  
  
  
  

